package operations;

import student.StudentList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-12-14
 * Time: 7:48
 */
public class DisplayOperation implements IOperation{
    @Override
    public void work(StudentList studentList) {
        if(studentList.isEmpty()){
            System.out.println("学生已经被清空!");
        }else {
            System.out.println("显示所有学生！");
            studentList.display();
        }

    }
}
